// ==UserScript==
// @name                杀佛观音·全网VIP视频破解免费看·全网最全非VIP视频去广告·极简版
// @name:zh             杀佛观音·全网VIP视频破解免费看·全网最全非VIP视频去广告·极简版
// @name:zh-CN          杀佛观音·全网VIP视频破解免费看·全网最全非VIP视频去广告·极简版
// @name:zh-TW          殺佛觀音·全網VIP視訊破解免費看·全網最全非VIP視訊去廣告·極簡版
// @namespace           杀佛观音
// @version             0.3.8
// @description         【安全无劫持、全平台设备兼容、无广告、无优惠券内容、无公众号限制】兼容电脑、手机、平板；兼容iOS快捷指令；兼容任意支持脚本扩展的浏览器，并提供去广告教程；兼容TM篡改猴、VM暴力猴、GM油猴插件。支持1905、AcFun、爱奇艺、哔哩哔哩、风行、华数、乐视、芒果TV、咪咕视频、PP视频(PPTV)、搜狐、腾讯视频、土豆、西瓜、优酷VIP视频破解免费看、非VIP视频去广告(视频前广告、视频中途广告、视频暂停广告、水印)；支持悬浮球操作、快捷键操作(并行不悖)；支持更换解析网站地址、关闭去广告功能、切换悬浮球大小、隐藏悬浮球、移动悬浮球。
// @description:zh      【安全无劫持、全平台设备兼容、无广告、无优惠券内容、无公众号限制】兼容电脑、手机、平板；兼容iOS快捷指令；兼容任意支持脚本扩展的浏览器，并提供去广告教程；兼容TM篡改猴、VM暴力猴、GM油猴插件。支持1905、AcFun、爱奇艺、哔哩哔哩、风行、华数、乐视、芒果TV、咪咕视频、PP视频(PPTV)、搜狐、腾讯视频、土豆、西瓜、优酷VIP视频破解免费看、非VIP视频去广告(视频前广告、视频中途广告、视频暂停广告、水印)；支持悬浮球操作、快捷键操作(并行不悖)；支持更换解析网站地址、关闭去广告功能、切换悬浮球大小、隐藏悬浮球、移动悬浮球。
// @description:zh-CN   【安全无劫持、全平台设备兼容、无广告、无优惠券内容、无公众号限制】兼容电脑、手机、平板；兼容iOS快捷指令；兼容任意支持脚本扩展的浏览器，并提供去广告教程；兼容TM篡改猴、VM暴力猴、GM油猴插件。支持1905、AcFun、爱奇艺、哔哩哔哩、风行、华数、乐视、芒果TV、咪咕视频、PP视频(PPTV)、搜狐、腾讯视频、土豆、西瓜、优酷VIP视频破解免费看、非VIP视频去广告(视频前广告、视频中途广告、视频暂停广告、水印)；支持悬浮球操作、快捷键操作(并行不悖)；支持更换解析网站地址、关闭去广告功能、切换悬浮球大小、隐藏悬浮球、移动悬浮球。
// @description:zh-TW   【安全無劫持、全平臺設備兼容、無廣告、無優惠券內容、無公眾號限製】兼容電腦、手機、平板；兼容iOS快捷指令；兼容任意支持腳本擴展的瀏覽器，並提供去廣告教程；兼容TM篡改猴、VM暴力猴、GM油猴插件。支持1905、AcFun、愛奇藝、嗶哩嗶哩、風行、華數、樂視、芒果TV、咪咕視頻、PP視頻(PPTV)、搜狐、騰訊視頻、土豆、西瓜、優酷VIP視頻破解免費看、非VIP視頻去廣告(視頻前廣告、視頻中途廣告、視頻暫停廣告、水印)；支持懸浮球操作、快捷鍵操作(並行不悖)；支持更換解析網站地址、關閉去廣告功能、切換懸浮球大小、隱藏懸浮球、移動懸浮球。
// @author              杀佛观音
// @copyright           2021 杀佛观音
// @license             End-User License Agreement
// @contributionURL     bitcoin:1H3DMkWAdJMUpkstdYZmHpiV7RAFjjC4WH
// @contributionAmount  0.0000666 BTC
// @match               *://vip.1905.com/*
// @match               *://*.acfun.cn/*
// @match               *://*.iqiyi.com/*
// @match               *://*.bilibili.com/*
// @match               *://fun.tv/*
// @match               *://*.fun.tv/*
// @match               *://*.wasu.cn/*lay/*
// @match               *://*.wasu.cn/wap/*lay/*
// @match               *://*.le.com/*
// @match               *://*.mgtv.com/*
// @match               *://*.miguvideo.com/*
// @match               *://*.pptv.com/*
// @match               *://*.tv.sohu.com/v*
// @match               *://film.sohu.com/album/*
// @match               *://v.qq.com/x/*
// @match               *://m.v.qq.com/*
// @match               *://3g.v.qq.com/*
// @match               *://*.tudou.com/*
// @match               *://*.ixigua.com/*
// @match               *://*.youku.com/*
// @match               *://17kyun.com/api.php?url=*
// @grant               none
// ==/UserScript==

(function () {
  'use strict';

  //最终用户许可协议 End-User License Agreement
  // * Copyright (c) 2021 杀佛观音. All Rights Reserved.
  // * Proprietary and Confidential.
  // * Written by 杀佛观音 [SWFtSmVob3ZhaDxhdD50dXRhbm90YS5jb20=(base64)], July 2021.
  // * It is never ok to copy and paste code from an open
  //   source project directly into your proprietary code.
  //   Don't do it.
  // * Re-distribution or adaptation in whole or in part of
  //   this script code by any means or in whatever form is
  //   strictly prohibited.
  // * 该项目介绍、说明书、脚本代码、思路及其他相关
  //   内容版权归作者所有，未经作者本人书面授权，禁
  //   止任何单位或个人以任何形式、任何手段或通过任
  //   何方式（净室工程、手工、图片、电子、机械、磁
  //   性、化学、光学、声学或其它方式）抄袭、摘编、
  //   编辑、修改、结集、出版、再版、转录、转载、爬
  //   虫爬取、重制、仿制、复制、复写、复印、影印、
  //   拷贝、刻录、建立镜像、粘贴、张贴、派发、录音、
  //   用来创建派生作品、与其它任何资料进行合并、翻
  //   译成任何电脑语言或以其他任何方式用于商业或公
  //   共目的。
  // * 该项目仅仅准许您善意的使用，其他任何行为都是
  //   禁止的。

  //更多脚本
  //https://greasyfork.org/zh-CN/users/792030

  //使用前或更新后进入下方脚本下载地址熟读信息，捐赠后视为正版，未捐赠视为盗版，好评后视为正版^_^
  //https://greasyfork.org/zh-CN/scripts/429245

  //优选播放源（本提示具有时效性，可能随时间推移失效，部分源需再次切换线路，较新剧集易解析且流畅，陈旧剧集可能接口少或卡顿）
  //爱奇艺   m2090 xmflv jiubo 973 等
  //哔哩哔哩 m2090 ok yemu kpezp m1907 playm3u8 等

  //注意：一旦修改源码，插件脚本检查更新可能会被取消，请手动进入上方脚本下载地址更新脚本
  //↓修改此地址更换解析网站
  //备用地址1 https://17kyun.com/api.php?url=
  //备用地址2 https://jx.52damu.com/?url=
  //备用地址3 https://jx.618g.com/?url=
  //备用地址4 https://jx.973973.xyz/?url=
  //备用地址5 http://okjx.cc/?url=
  var KillBuddha_src = 'https://17kyun.com/api.php?url=';
  //↓修改此参数关闭非VIP视频去广告功能，默认开启，!0为开启，!1为关闭
  var KillBuddha_no_ads = !0;
  //↓修改此参数切换右下角悬浮球（VIP图标）大小，默认为大，!0为大，!1为小
  var KillBuddha_big = !0;
  //↓修改此参数隐藏右下角悬浮球（VIP图标），默认不隐藏，!0为隐藏，!1为不隐藏
  //注意：除非有此需求，否则请勿修改此参数；隐藏后无法操作悬浮球，只能通过操作快捷键进行解析；部分设备（移动端、平板端）无法操作快捷键，此类设备切勿修改此参数。
  var KillBuddha_hidden = !1;

  //21.12.20 因内置解析网站17kyun已关停，临时强行修复该站错误代码逻辑，若后续彻底无法访问该站，将对本项目脚本进行大更新。
  if (window.location.href.match(/^https?:\/\/17kyun\.com\/api\.php\?url=/i)) {
    (function wait() {
      if (['complete', 'loaded'].indexOf(document.readyState) !== -1) {
        if (typeof (Base64) !== 'function') {
          var script = document.createElement('script');
          script.type = 'text/javascript';
          script.text = "function Base64(){function _utf8_encode(string){string=string.replace(/\\r\\n/g,'\\n');var utftext='';for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}return utftext;}function _utf8_decode(utftext){var string='',i=0,c=0,c1=0,c2=0,c3=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}return string;}var _keyStr='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';this.encode=function(input){var output='',chr1,chr2,chr3,enc1,enc2,enc3,enc4,i=0;input=_utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}output=output+_keyStr.charAt(enc1)+_keyStr.charAt(enc2)+_keyStr.charAt(enc3)+_keyStr.charAt(enc4);}return output;};this.decode=function(input){var output='',chr1,chr2,chr3,enc1,enc2,enc3,enc4,i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,'');while(i<input.length){enc1=_keyStr.indexOf(input.charAt(i++));enc2=_keyStr.indexOf(input.charAt(i++));enc3=_keyStr.indexOf(input.charAt(i++));enc4=_keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}if(enc4!=64){output=output+String.fromCharCode(chr3);}}output=_utf8_decode(output);return output;};}function IsPC(){var userAgentInfo=navigator.userAgent;var Agents=new Array('Android','iPhone','SymbianOS','Windows Phone','iPad','iPod');var flag=true;for(var v=0;v<Agents.length;v++){if(userAgentInfo.indexOf(Agents[v])>0){flag=false;break;}}return flag;}function getCookie(name){var arr,reg=new RegExp('(^| )'+name+'=([^;]*)(;|$)');if(arr=document.cookie.match(reg)){return unescape(arr[2]);}else{return null;}}function SetCookie(name,value){var exp=new Date();exp.setTime(exp.getTime()+8*60*60*1000);document.cookie=name+'='+escape(value)+';expires='+exp.toGMTString()+';path=/';}";
          document.body.appendChild(script);
          script = document.createElement('script');
          script.type = 'text/javascript';
          script.src = 'apijax.php';
          document.body.appendChild(script);
        }
      } else {
        setTimeout(function () {
          wait();
        }, 25);
      }
    })();
  }
  var match = window.location.href.match(/(^https?:\/\/vip\.1905\.com\/)?(^https?:\/\/(www|m)\.acfun\.cn\/)?(^https?:\/\/(www|m)\.iqiyi\.com\/)?(^https?:\/\/(www|m)\.bilibili\.com\/)?(^https?:\/\/(m\.)?fun\.tv\/)?(^https?:\/\/www\.wasu\.cn\/(wap\/)?Play)?(^https?:\/\/(www|m)\.le\.com\/)?(^https?:\/\/(www|m)\.mgtv\.com\/)?(^https?:\/\/(www|m)\.miguvideo\.com\/)?(^https?:\/\/(v|m)\.pptv\.com\/)?(^https?:\/\/player\.aplus\.pptv\.com\/)?(^https?:\/\/(.*\.)?tv\.sohu\.com\/v)?(^https?:\/\/film\.sohu\.com\/album\/)?(^https?:\/\/((m|3g)\.)?v\.qq\.com\/)?(^https?:\/\/((?!https?:\/\/).)*\.tudou\.com\/)?(^https?:\/\/(www|m)\.ixigua\.com\/)?(^https?:\/\/((?!https?:\/\/).)*\.youku\.com\/)?/i);
  if (!match || match[0] === '') {
    return;
  }
  if (typeof (completion) === 'function' && completion.toString().indexOf('ExtensionPreprocessingJS') > -1) {
    location.href = KillBuddha_src + location.href;
    completion();
    return;
  }
  function KillBuddha_coexist(d, e, f) {
    if (e.substr(0, 2) === 'on') {
      e = e.substr(2);
    }
    if (window.addEventListener) {
      d.addEventListener(e, f, !1);
    } else if (window.attachEvent) {
      d.attachEvent('on' + e, f);
    } else {
      var f_ = d['on' + e];
      if (typeof f_ === 'function') {
        d['on' + e] = function () {
          f_();
          f();
        };
      } else {
        d['on' + e] = f;
      }
    }
  }
  match = window.location.href.match(/(^https?:\/\/player\.aplus\.pptv\.com\/)?/i);
  if (!match || match[0] === '') {
    KillBuddha_coexist(document, 'onkeydown', function (e) {
      var keyCode = e.keyCode || e.which || e.charCode;
      var altKey = e.altKey;
      if (altKey && keyCode === 65) {
        location.href = KillBuddha_src + location.href;
      }
      if (altKey && keyCode === 81) {
        window.open(KillBuddha_src + location.href);
      }
    });
    var x = 0, y = 0, left = 0, top = 0, down = !1, move = !1, i = 0, clear = null, time = 666, KillBuddha_div = document.createElement('div');
    KillBuddha_div.style = 'z-index:99999999999999;position:fixed;cursor:pointer;width:100px;height:100px;right:60px;bottom:60px;display:block;box-shadow:rgba(15, 66, 76, 0.25) 0px 0px 8px 3px;border-radius:15px;background-size:100% 100%;background-image:url();';
    if (!KillBuddha_big) {
      KillBuddha_div.style.width = '60px';
      KillBuddha_div.style.height = '60px';
    }
    if (KillBuddha_hidden) {
      KillBuddha_div.style.display = 'none';
    } else {
      setInterval(function () {
        if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {
          KillBuddha_div.style.display = 'none';
        } else {
          KillBuddha_div.style.display = 'block';
        }
      }, 1111);
    }
    KillBuddha_div.onmouseover = KillBuddha_div.onfocus = function () {
      KillBuddha_div.style['box-shadow'] = '0px 0px 8px 3px';
    };
    KillBuddha_div.onmouseleave = KillBuddha_div.onblur = function () {
      KillBuddha_div.style['box-shadow'] = 'rgba(15, 66, 76, 0.25) 0px 0px 8px 3px';
    };
    KillBuddha_div.onmousedown = function (e) {
      KillBuddha_div.style.cursor = 'move';
      x = e.clientX;
      y = e.clientY;
      left = KillBuddha_div.offsetLeft;
      top = KillBuddha_div.offsetTop;
      down = !0;
      move = !1;
    };
    KillBuddha_div.onmouseup = function () {
      KillBuddha_div.style.cursor = 'pointer';
      down = !1;
    };
    KillBuddha_coexist(window, 'onmousemove', function (e) {
      if (!down) {
        return;
      }
      move = !0;
      KillBuddha_div.style.left = e.clientX - x + left + 'px';
      KillBuddha_div.style.top = e.clientY - y + top + 'px';
    });
    KillBuddha_coexist(document, 'touchstart', function (e) {
      if (e.target !== KillBuddha_div) {
        return;
      }
      KillBuddha_div.style['box-shadow'] = '0px 0px 8px 3px';
      x = e.touches[0].clientX;
      y = e.touches[0].clientY;
      left = KillBuddha_div.offsetLeft;
      top = KillBuddha_div.offsetTop;
    });
    KillBuddha_coexist(document, 'touchend', function (e) {
      if (e.target !== KillBuddha_div) {
        return;
      }
      KillBuddha_div.style['box-shadow'] = 'rgba(15, 66, 76, 0.25) 0px 0px 8px 3px';
    });
    KillBuddha_coexist(document, 'touchmove', function (e) {
      if (e.target !== KillBuddha_div) {
        return;
      }
      KillBuddha_div.style.left = e.touches[0].clientX - x + left + 'px';
      KillBuddha_div.style.top = e.touches[0].clientY - y + top + 'px';
    });
    KillBuddha_div.onclick = function (e) {
      if (move) {
        return;
      }
      i++;
      if (clear) {
        clearTimeout(clear);
      }
      clear = setTimeout(function () {
        if (i === 1) {
          location.href = KillBuddha_src + location.href;
        } else {
          window.open(KillBuddha_src + location.href);
        }
        clear = null;
        i = 0;
      }, time);
    };
    (document.querySelector('body') ? document.body : document.documentElement).appendChild(KillBuddha_div);
  }
  function show() {
    if (!KillBuddha_no_ads || document.getElementById('______')) {
      return;
    }
    var KillBuddha_div = document.createElement('div');
    KillBuddha_div.style = 'z-index:99999999999999;position:fixed;width:250px;height:120px;left:25%;top:30%;font-size:22px;background-color:#FCCF33;box-shadow:rgba(15, 66, 76, 0.25) 0px 0px 8px 3px;border-radius:15px;overflow:hidden;background-size:100% 100%;';
    KillBuddha_div.id = '______';
    (document.querySelector('body') ? document.body : document.documentElement).appendChild(KillBuddha_div);
    var KillBuddha_div_son = document.createElement('input');
    KillBuddha_div_son.style = 'width:100%;height:1.5em;color:#000000;background-color:#FFFFFF;font-size:22px;text-align:center;';
    KillBuddha_div_son.type = 'submit';
    KillBuddha_div_son.value = '\u70b9\u51fb\u53d6\u6d88\u672c\u6b21\u53bb\u5e7f\u544a';
    KillBuddha_div_son.onclick = function (e) {
      KillBuddha_no_ads = !1;
      KillBuddha_div.remove();
    };
    KillBuddha_div.appendChild(KillBuddha_div_son);
    KillBuddha_div_son = document.createElement('div');
    KillBuddha_div_son.style = 'height:100%;color:#000000;font-size:22px;overflow:auto;scrollbar-width:thin;text-align:center;';
    KillBuddha_div.appendChild(KillBuddha_div_son);
    var KillBuddha_div_ = document.createElement('div');
    KillBuddha_div_.style = 'height:1.2em;color:#000000;font-size:22px;text-align:center;';
    KillBuddha_div_.innerHTML = '<a href=\'https://greasyfork.org/zh-CN/users/792030\'>\u6740\u4f5b\u89c2\u97f3</a>';
    KillBuddha_div_son.appendChild(KillBuddha_div_);
    KillBuddha_div_ = document.createElement('div');
    KillBuddha_div_.style = 'height:1.2em;color:#000000;font-size:22px;text-align:center;';
    KillBuddha_div_.innerHTML = '<a href=\'https://greasyfork.org/zh-CN/scripts/429245\'>\u5168\u7f51\u975e\u0056\u0049\u0050\u89c6\u9891\u53bb\u5e7f\u544a</a>';
    KillBuddha_div_son.appendChild(KillBuddha_div_);
    KillBuddha_div_ = document.createElement('div');
    KillBuddha_div_.style = 'height:1.2em;color:#000000;font-size:22px;text-align:center;';
    KillBuddha_div_.innerHTML = '\u53bb\u5e7f\u544a\u4e2d...';
    KillBuddha_div_son.appendChild(KillBuddha_div_);
    setTimeout(function () {
      KillBuddha_div.remove();
    }, 1111);
  }
  switch (window.location.host) {
    case 'm.iqiyi.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('normal-public-time')[0] && document.getElementsByClassName('normal-public-time')[0].style.display !== 'none') {
              show();
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                video_.currentTime = 1000;
              });
            }
          }
        }, 111);
      })();
      break;
    case 'www.iqiyi.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            var close = !1;
            if (!close && document.getElementsByClassName('cupid-public-time')[0] && document.getElementsByClassName('cupid-public-time')[0].style.display === '') {
              show();
              document.querySelector('#flashbox > iqpdiv > iqpdiv.iqp-player > video').removeAttribute('src');
              document.querySelector('#flashbox > iqpdiv > iqpdiv.iqp-player > video').load();
              close = !0;
            }
            if (close && document.getElementsByClassName('skippable-after')[0]) {
              document.getElementsByClassName('skippable-after')[0].click();
              close = !1;
            }
          }
          if (document.getElementsByClassName('cupid-pause-close')[0]) { document.getElementsByClassName('cupid-pause-close')[0].parentNode.remove(); }
          Array.from(document.getElementsByClassName('iqp-logo-box')).forEach(function (div_) { div_.remove(); });
          Array.from(document.getElementsByClassName('iqp-logo-top logoShowAnimation')).forEach(function (div_) { div_.remove(); });
          Array.from(document.getElementsByClassName('iqp-logo-bottom logoShowAnimation')).forEach(function (div_) { div_.remove(); });
        }, 111);
        Array.from(document.getElementsByClassName('iqp-integral-inner')).forEach(function (div_) { div_.remove(); });
      })();
      break;
    case 'm.fun.tv':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('m-h5v-qt')[0]) {
              show();
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                video_.currentTime = 1000;
              });
            }
          }
        }, 222);
      })();
      break;
    case 'www.wasu.cn':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        var intervalID = setInterval(function () {
          if (typeof (_whiteInfo) !== 'undefined') {
            KillBuddha_div.id = 'KillBuddha_div';
            _whiteInfo += '|KillBuddha_div';
            clearInterval(intervalID);
          }
        }, 50);
        if (KillBuddha_no_ads) {
          show();
          var setInterval_ = setInterval;
          var intervalID_ = setInterval(function () {
            if (!document.querySelector('#adCountDown')) {
              clearInterval(intervalID_);
              window.setInterval = setInterval_;
            }
            if (!KillBuddha_no_ads) {
              clearInterval(intervalID_);
              window.setInterval = setInterval_;
            }
          }, 111);
          window.setInterval = function (f, timeout, ...arg) {
            timeout = timeout / 66;
            setInterval_(f, timeout, ...arg);
          };
          if (document.getElementById('play_and_info_fix_adv')) { document.getElementById('play_and_info_fix_adv').style.display = 'none'; }
          Array.from(document.getElementsByClassName('ws_poster')).forEach(function (div_) { div_.style.display = 'none'; });
        }
      })();
      break;
    case 'www.le.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('vdo_post_time')[0]) {
              show();
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                video_.setAttribute('src', null);
              });
            }
          }
          if (typeof ($) != 'undefined') {
            $('.hv_pause_content').remove();
          }
        }, 1111);
      })();
      break;
    case 'm.mgtv.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('ad-time-area2')[0] && document.getElementsByClassName('ad-time-area2')[0].style.display !== 'none') {
              show();
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                video_.setAttribute('src', null);
              });
            }
          }
          Array.from(document.getElementsByClassName('ad-fixed-bar')).forEach(function (div_) { div_.remove(); });
        }, 1111);
      })();
      break;
    case 'www.mgtv.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (typeof ($) != 'undefined') {
            if (KillBuddha_no_ads) {
              if ($('.as_fill_player.as_video_bg_url')[0]) {
                show();
                $('video').each(function (i, video_) {
                  video_.currentTime = 1000;
                });
              }
            }
            $('.as-pause_container').css('display', 'none');
            $('.as_stages-wrapper').css('display', 'none');
            $('.m-agreement').remove();
          }
        }, 111);
      })();
      break;
    case 'm.miguvideo.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (typeof ($) != 'undefined') {
            if (KillBuddha_no_ads) {
              if ($('.skip_advert')[0]) {
                show();
                $('video').each(function (i, video_) {
                  video_.currentTime = 1000;
                });
              }
            }
          }
        }, 111);
      })();
      break;
    case 'm.pptv.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          Array.from(document.getElementsByClassName('ad')).forEach(function (div_) { div_.remove(); });
          Array.from(document.getElementsByClassName('swiper-slide')).forEach(function (div_) { div_.remove(); });
          Array.from(document.getElementsByClassName('foot_app')).forEach(function (div_) { div_.remove(); });
        }, 111);
      })();
      break;
    case 'player.aplus.pptv.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('p-video-vastad')[0]) {
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                if (video_.currentTime > 0) {
                  video_.currentTime = 1000;
                }
              });
            }
          }
        }, 111);
      })();
      break;
    case 'v.pptv.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (typeof ($) != 'undefined') {
            if (KillBuddha_no_ads) {
              if ($('.roll-current')[0] && $('.roll-current')[0].duration !== 0) {
                show();
                $('.roll-current')[0].currentTime = 1000;
              }
              if (document.getElementsByClassName('p-video-vastad')[0]) {
                Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                  if (video_.currentTime > 0) {
                    video_.currentTime = 1000;
                  }
                });
              }
            }
            $('#p-mark').css('display', 'none');
          }
        }, 111);
      })();
      break;
    case 'pad.tv.sohu.com':
    case 'm.tv.sohu.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('x-ad-panel')[0] && document.getElementsByClassName('x-ad-panel')[0].style.display !== 'none') {
              show();
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                video_.playbackRate = 7.5;
              });
            }
          }
          Array.from(document.getElementsByClassName('js-oper-pos')).forEach(function (div_) { div_.remove(); });
        }, 1111);
      })();
      break;
    case 'tv.sohu.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        var src = '';
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (typeof ($) != 'undefined' && $('.x-video-adv').find('video')[0]) {
              show();
              $('.x-video-adv').find('video').each(function (i, video_) {
                if (src === video_.src) {
                  video_.muted = !0;
                  video_.playbackRate = 16;
                } else {
                  video_.currentTime = 1000;
                }
                src = video_.src;
              });
            }
          }
          Array.from(document.getElementsByClassName('x-fox-btn')).forEach(function (div_) { div_.display = 'none'; });
          Array.from(document.getElementsByClassName('x-adv-pause-nonlinear-panel')).forEach(function (div_) { div_.display = 'none'; });
          Array.from(document.getElementsByClassName('x-adv-flogo-panel')).forEach(function (div_) { div_.display = 'none'; });
        }, 111);
      })();
      break;
    case 'm.v.qq.com':
    case '3g.v.qq.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('txp_ad')[0] && document.getElementsByClassName('txp_ad')[0].className === 'txp_ad') {
              show();
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                video_.currentTime = 1000;
              });
            }
          }
        }, 555);
      })();
      break;
    case 'v.qq.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (typeof ($) != 'undefined') {
            if (KillBuddha_no_ads) {
              if ($('.txp_ad').find('txpdiv').find('video').length !== 0) {
                $('.txp_ad').find('txpdiv').find('video').each(function (i, video_) {
                  show();
                  if (video_.duration !== video_.currentTime) {
                    video_.setAttribute('src', 'https://qq.com');
                  }
                });
              } else {
                var ad = !1;
                var txp_none = 0;
                $('.txp_ad_skip').each(function (i, div_) {
                  if (div_.className.indexOf('txp_none') < 0) {
                    ad = !0;
                  } else {
                    txp_none++;
                  }
                });
                if (ad && txp_none !== 0 && txp_none !== document.getElementsByClassName('txp_ad_skip').length) {
                  show();
                  $('video').each(function (i, video_) {
                    if (video_.duration !== video_.currentTime) {
                      video_.currentTime = 1000;
                    }
                  });
                }
              }
            }
            $('.txp_waterMark_pic').css('display', 'none');
            if ($('.txp_ad')) {
              $('.txp_ad').css('display', 'none');
            }
          }
        }, 111);
      })();
      break;
    case 'm.youku.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (KillBuddha_no_ads) {
            if (document.getElementsByClassName('x-advert')[0] && document.getElementsByClassName('x-advert')[0].style.display !== 'none') {
              show();
              Array.from(document.getElementsByTagName('video')).forEach(function (video_) {
                video_.setAttribute('src', null);
              });
            }
          }
          Array.from(document.getElementsByClassName('Corner-container')).forEach(function (div_) { div_.remove(); });
        }, 111);
      })();
      break;
    case 'v.youku.com':
    case 'v-wb.youku.com':
    case 'vku.youku.com':
      (function () {
        // * 请遵守最终用户许可协议 license:End-User License Agreement
        if (!KillBuddha_no_ads) return;
        setInterval(function () {
          if (typeof ($) != 'undefined') {
            if (KillBuddha_no_ads) {
              if ($('.h5-ext-layer').find('div').find('video').length !== 0) {
                show();
                $('.h5-ext-layer').find('div').find('video').each(function (i, video_) {
                  if (video_.duration !== video_.currentTime) {
                    video_.currentTime = 1000;
                  }
                });
              }
            }
            $('.youku-layer-wuliao').css('display', 'none');
            $('.h5-ext-layer').css('display', 'none');
          }
        }, 111);
      })();
      break;
  }
})();